/**
 * Created by python on 18-10-3.
 */


function getCookie(name) {
    var r = document.cookie.match("\\b" + name + "=([^;]*)\\b");
    return r ? r[1] : undefined;
}


$(function(){

     $(".link-del").click(function (e) {
        var order_id  = $(this).attr("order_id")
        $.get('/admin/del_order/'+order_id,function (resp) {
            if (resp.errno == "0") {
                location.reload()
            }else {
                alert(resp.errmsg)
            }
        })

    })

})